//公共
import Login from '@/views/Login.vue'
const routerPublic = [
  {
    path: '/',
    redirect: '/login',
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/Login.vue')
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('@/views/Home.vue'),
    children: [],
  }
]
//陈滨婷
const router1 = [
  {
    path: '/CompletedTask',
    name: 'completedTask',
    meta: {
      title: '已归档任务'
    },
    component: () => import('@/views/taskManagement/CompletedTask.vue')
  },
  {
    path: '/CreatedTask',
    name: 'createdTask',
    meta: {
      title: '我创建的任务'
    },
    component: () => import('@/views/taskManagement/CreatedTask.vue')
  },
  {
    path: '/ParticipatingTask',
    name: 'participatingTask',
    meta: {
      title: '我参与的任务'
    },
    component: () => import('@/views/taskManagement/ParticipatingTask.vue')
  },
  {
    path: '/ResponsibleTask',
    name: 'responsibleTask',
    meta: {
      title: '我负责的任务'
    },
    component: () => import('@/views/taskManagement/ResponsibleTask.vue')
  },
]
//赖世纪
const router2 = [
  {
    path: '/Construction',
    name: 'construction',
    meta: {
      title: '材料采购合同'
    },
    component: () => import('@/views/ContractManagement/Construction.vue')
  },
  {
    path: '/Material',
    name: 'material',
    meta: {
      title: '施工班组合同'
    },
    component: () => import('@/views/ContractManagement/Material.vue')
  },
  {
    path: '/Project',
    name: 'project',
    meta: {
      title: '项目合同'
    },
    component: () => import('@/views/ContractManagement/Project.vue')
  },
  {
    path: '/Routine',
    name: 'routine',
    meta: {
      title: '常规合同'
    },
    component: () => import('@/views/ContractManagement/Routine.vue')
  },
]
//吴波航
const router3 = [
  {
    path: '/ApprovalHandled',
    name: 'approvalHandled',
    meta: {
      title: '我发起的审批'
    },
    component: () => import('@/views/ApprovalManagement/ApprovalHandled.vue')
  },
  {
    path: '/CcApproval',
    name: 'ccApproval',
    meta: {
      title: '抄送给我的审批'
    },
    component: () => import('@/views/ApprovalManagement/CcApproval.vue')
  },
  {
    path: '/handleApproval',
    name: 'handleApproval',
    meta: {
      title: '我经办的审批'
    },
    component: () => import('@/views/ApprovalManagement/HandleApproval.vue')
  },
]
// 胡潇
const router4 = [
  {
    path: '/Home',
    name: 'home',
    meta: {
      title: '首页'
    },
    component: () => import('@/views/Home/Home.vue')
  },
  {
    path: '/AccountSettings',
    name: 'accountSettings',
    meta: {
      title: '账号设置'
    },
    component: () => import('@/views/setting/AccountSettings')
  },
  {
    path: '/ApprovalProcessSettings',
    name: 'approvalProcessSettings',
    meta: {
      title: '审批流设置'
    },
    component: () => import('@/views/setting/ApprovalProcessSettings')
  },
]
//赵君豪
const router5 = [
  {
    path: '/ConstructionTeam',
    name: 'constructionTeam',
    meta: {
      title: '施工班组管理'
    },
    component: () => import('@/views/Recruit/ConstructionTeam')
  },
  {
    path: '/ProcurementPlan',
    name: 'procurementPlan',
    meta: {
      title: '采购计划'
    },
    component: () => import('@/views/Recruit/ProcurementPlan')
  },
  {
    path: '/Supplier',
    name: 'supplier',
    meta: {
      title: '供应商管理'
    },
    component: () => import('@/views/Recruit/Supplier')
  },
]
//路建林
const router6 = [
  {
    path: '/Account',
    name: 'account',
    meta: {
      title: '台账管理'
    },
    component: () => import('@/views/Finance/Account.vue')
  },
  {
    path: '/Collection',
    name: 'collection',
    meta: {
      title: '收款记录'
    },
    component: () => import('@/views/Finance/Collection.vue')
  },
  {
    path: '/Payment',
    name: 'payment',
    meta: {
      title: '付款记录'
    },
    component: () => import('@/views/Finance/Payment.vue')
  },
]
//  王驰
const router7 = [
  {
    path: '/BidManagement',
    name: 'bidManagement',
    meta: {
      title: '投标管理'
    },
    component: () => import('@/views/ProjectManagement/BidManagement.vue')
  },
  {
    path: '/ProjectManagement',
    name: 'projectManagement',
    meta: {
      title: '项目管理'
    },
    component: () => import('@/views/ProjectManagement/ProjectManagement.vue')
  },
  {
    path: '/Payment',
    name: 'payment',
    meta: {
      title: '付款记录'
    },
    component: () => import('@/views/Finance/Payment.vue')
  },
]
export const routerData = function () {
  let a = router1.concat(router2).concat(router3).concat(router4).concat(router5).concat(router6).concat(router7)
  routerPublic[2].children = a

  return routerPublic
}

// export default routerData